package cn.edu.sptc.sms_luojie.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Nullable;
import lombok.Data;

import java.util.Date;
//对应数据库中的学生表
@Data
@Schema(description = "学生实体类（请求体/响应共同体）")
public class Student {
    @Schema(description = "学生ID，自动新增",example = "1")
    @Nullable
    private Long id;
    @Schema(description = "专业id号，必须有这个专业id",example = "1",required = true)
    private  Long  majorId;
    @Schema(description = "学生名称",example = "张三",required = true)
    private String name;
    @Schema(description = "学生性别",example = "女",required = true)
    private String sex;
    @Schema(description = "创建时间，系统自动创建，不需要添加",hidden = true)
    @Nullable
    private Date createTime;
    @Schema(description = "更新时间，系统自动添加，不需要添加",hidden = true)
    @Nullable
    private Date updateTime;
}
